"use strict";
cc._RF.push(module, '51fa6kgHXJL3ohx/zOq793u', 'AudioSourceControl');
// src/AudioSourceControl.js

"use strict";

var n = module.exports = {};
var t = module;

var i = require('define'),
    o = cc.Class({
  "extends": cc.Component,
  properties: {
    audio: {
      type: cc.AudioSource,
      "default": null
    },
    audioClick: {
      type: cc.AudioSource,
      "default": null
    },
    audioMove: {
      type: cc.AudioSource,
      "default": null
    },
    audioComplete: {
      type: cc.AudioSource,
      "default": null
    },
    data: 0
  },
  statics: {
    _instance: null,
    getInstance: function getInstance() {
      return null === o._instance && (this._instance = new o(), console.log("AudioSourceControl _instance=this  !")), o._instance;
    }
  },
  onLoad: function onLoad() {
    cc.game.addPersistRootNode(this.node), console.log("AudioSourceControl onLoad  ");
  },
  start: function start() {},
  playAudio: function playAudio() {
    this.audio && 1 == i.music && this.audio.play();
  },
  playClick: function playClick() {
    this.audioClick && 1 == i.music && this.audioClick.play();
  },
  playMove: function playMove() {
    this.audioMove && 1 == i.music && this.audioMove.play();
  },
  playComplete: function playComplete() {
    this.audioComplete && 1 == i.music && this.audioComplete.play();
  }
});

t.exports = o;

cc._RF.pop();